.class public Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# static fields
.field public static a:Landroid/widget/TextView;

.field public static b:Landroid/widget/ListView;


# instance fields
.field protected c:Lcom/waiqin365/lightwork/directory/b/v;

.field protected d:Ljava/lang/String;

.field private e:Landroid/widget/ImageView;

.field private f:Landroid/widget/TextView;

.field private g:Lcom/waiqin365/h5/ui/a/a;

.field private h:Landroid/os/Handler;

.field private i:Ljava/util/List;

.field private j:Ljava/util/List;

.field private k:I

.field private l:Ljava/util/List;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->i:Ljava/util/List;

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->k:I

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->l:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;Lcom/waiqin365/h5/ui/a/a;)Lcom/waiqin365/h5/ui/a/a;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->g:Lcom/waiqin365/h5/ui/a/a;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->i:Ljava/util/List;

    return-object v0
.end method

.method private a(Landroid/content/Intent;)V
    .locals 1

    if-eqz p1, :cond_0

    const/4 v0, -0x1

    invoke-virtual {p0, v0, p1}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->setResult(ILandroid/content/Intent;)V

    :cond_0
    invoke-virtual {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->back()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->j:Ljava/util/List;

    return-object v0
.end method

.method private b()V
    .locals 1

    new-instance v0, Lcom/waiqin365/h5/ui/acty/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/h5/ui/acty/a;-><init>(Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;)V

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->h:Landroid/os/Handler;

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;)Lcom/waiqin365/h5/ui/a/a;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->g:Lcom/waiqin365/h5/ui/a/a;

    return-object v0
.end method

.method private c()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->k:I

    return v0
.end method

.method static synthetic e(Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->l:Ljava/util/List;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lorg/json/JSONArray;)Ljava/util/List;
    .locals 6

    const/4 v0, 0x0

    if-eqz p1, :cond_6

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    :goto_0
    invoke-virtual {p2}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v0, v2, :cond_5

    :try_start_0
    invoke-virtual {p2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    new-instance v4, Lcom/waiqin365/lightapp/kehu/share/a/a;

    invoke-direct {v4}, Lcom/waiqin365/lightapp/kehu/share/a/a;-><init>()V

    const-string/jumbo v2, "name"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    const-string/jumbo v2, "name"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v4, Lcom/waiqin365/lightapp/kehu/share/a/a;->g:Ljava/lang/String;

    :cond_0
    const-string/jumbo v2, "id"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    const-string/jumbo v2, "id"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v4, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    :cond_1
    const-string/jumbo v2, "isCanSelect"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    const-string/jumbo v2, "isCanSelect"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_4

    const-string/jumbo v2, "isCanSelect"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :goto_1
    const-string/jumbo v5, "1"

    invoke-virtual {v5, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2

    iget-object v2, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->l:Ljava/util/List;

    iget-object v5, v4, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    invoke-interface {v2, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_2
    iput-object p1, v4, Lcom/waiqin365/lightapp/kehu/share/a/a;->a:Lcom/waiqin365/lightapp/kehu/share/a/a;

    const-string/jumbo v2, "list"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    const-string/jumbo v2, "list"

    invoke-virtual {v3, v2}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    invoke-virtual {p0, v4, v2}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lorg/json/JSONArray;)Ljava/util/List;

    move-result-object v2

    invoke-virtual {v4, v2}, Lcom/waiqin365/lightapp/kehu/share/a/a;->a(Ljava/util/List;)V

    :cond_3
    invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_4
    const-string/jumbo v2, "1"
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v2

    invoke-virtual {v2}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_2

    :cond_5
    move-object v0, v1

    :goto_3
    return-object v0

    :cond_6
    :goto_4
    invoke-virtual {p2}, Lorg/json/JSONArray;->length()I

    move-result v1

    if-ge v0, v1, :cond_d

    :try_start_1
    invoke-virtual {p2, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    new-instance v3, Lcom/waiqin365/lightapp/kehu/share/a/a;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/kehu/share/a/a;-><init>()V

    const-string/jumbo v1, "name"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_7

    const-string/jumbo v1, "name"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/waiqin365/lightapp/kehu/share/a/a;->g:Ljava/lang/String;

    :cond_7
    const-string/jumbo v1, "id"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_8

    const-string/jumbo v1, "id"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    :cond_8
    const-string/jumbo v1, "isCanSelect"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_9

    const-string/jumbo v1, "isCanSelect"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_c

    const-string/jumbo v1, "isCanSelect"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    :goto_5
    const-string/jumbo v4, "1"

    invoke-virtual {v4, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_9

    iget-object v1, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->l:Ljava/util/List;

    iget-object v4, v3, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_9
    iput-object p1, v3, Lcom/waiqin365/lightapp/kehu/share/a/a;->a:Lcom/waiqin365/lightapp/kehu/share/a/a;

    const-string/jumbo v1, "list"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_a

    const-string/jumbo v1, "list"

    invoke-virtual {v2, v1}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    invoke-virtual {p0, v3, v1}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lorg/json/JSONArray;)Ljava/util/List;

    move-result-object v1

    invoke-virtual {v3, v1}, Lcom/waiqin365/lightapp/kehu/share/a/a;->a(Ljava/util/List;)V

    :cond_a
    if-eqz v3, :cond_b

    iget-object v1, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->i:Ljava/util/List;

    invoke-interface {v1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_b
    :goto_6
    add-int/lit8 v0, v0, 0x1

    goto :goto_4

    :cond_c
    const-string/jumbo v1, "1"
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_5

    :catch_1
    move-exception v1

    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_6

    :cond_d
    const/4 v0, 0x0

    goto/16 :goto_3
.end method

.method protected a()V
    .locals 4

    const v2, 0x7f0805d3

    const/4 v3, 0x0

    const v0, 0x7f0c070f

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->e:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0711

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->f:Landroid/widget/TextView;

    const v0, 0x7f0c0712

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    sput-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->j:Ljava/util/List;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_3

    :cond_0
    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    invoke-virtual {p0, v2}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    const-string/jumbo v1, "#999999"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    const v1, 0x7f02011c

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    :goto_0
    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iget v0, v0, Lcom/waiqin365/lightwork/directory/b/v;->m:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->f:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/v;->f:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-virtual {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f080765

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_1
    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c06b9

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    sput-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->b:Landroid/widget/ListView;

    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->b:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0c0247

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iget-object v1, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iget-boolean v1, v1, Lcom/waiqin365/lightwork/directory/b/v;->a:Z

    if-eqz v1, :cond_2

    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    const/high16 v1, 0x420c0000    # 35.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    :cond_2
    return-void

    :cond_3
    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0, v2}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->j:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a:Landroid/widget/TextView;

    const v1, 0x7f02011d

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    goto/16 :goto_0

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/v;->f:Ljava/lang/String;

    goto :goto_1
.end method

.method public onBackPressed()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 9

    const/4 v3, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    invoke-direct {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c()V

    goto :goto_0

    :pswitch_2
    new-instance v5, Landroid/content/Intent;

    invoke-direct {v5}, Landroid/content/Intent;-><init>()V

    sget-object v0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->b:Landroid/widget/ListView;

    invoke-virtual {v0}, Landroid/widget/ListView;->getAdapter()Landroid/widget/ListAdapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/h5/ui/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/h5/ui/a/a;->a()Ljava/util/List;

    move-result-object v6

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    move v4, v3

    :goto_1
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v0

    if-ge v3, v0, :cond_2

    invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-boolean v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->v:Z

    if-eqz v0, :cond_1

    if-eqz v4, :cond_0

    const-string/jumbo v0, ","

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_0
    invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/4 v4, 0x1

    new-instance v8, Lcom/waiqin365/lightapp/kehu/share/a/n;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/kehu/share/a/n;-><init>()V

    invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    iput-object v0, v8, Lcom/waiqin365/lightapp/kehu/share/a/n;->a:Ljava/lang/String;

    invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->l:Ljava/lang/String;

    iput-object v0, v8, Lcom/waiqin365/lightapp/kehu/share/a/n;->c:Ljava/lang/String;

    invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->g:Ljava/lang/String;

    iput-object v0, v8, Lcom/waiqin365/lightapp/kehu/share/a/n;->b:Ljava/lang/String;

    invoke-interface {v2, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :goto_2
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1

    :cond_1
    new-instance v8, Lcom/waiqin365/lightapp/kehu/share/a/m;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/kehu/share/a/m;-><init>()V

    invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->f:Ljava/lang/String;

    iput-object v0, v8, Lcom/waiqin365/lightapp/kehu/share/a/m;->b:Ljava/lang/String;

    invoke-interface {v6, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/share/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/share/a/a;->g:Ljava/lang/String;

    iput-object v0, v8, Lcom/waiqin365/lightapp/kehu/share/a/m;->c:Ljava/lang/String;

    invoke-interface {v1, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    :cond_2
    const-string/jumbo v0, "exitingMembers"

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v5, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v3, "selectDepList"

    move-object v0, v1

    check-cast v0, Ljava/io/Serializable;

    invoke-virtual {v5, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v3, "selectPersonList"

    move-object v0, v2

    check-cast v0, Ljava/io/Serializable;

    invoke-virtual {v5, v3, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/v;->d:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_3

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v3, "exitingMembers"

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v3, "selectDepList"

    invoke-virtual {v0, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "selectPersonList"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v1}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iget-object v2, v2, Lcom/waiqin365/lightwork/directory/b/v;->d:Ljava/lang/String;

    iput-object v2, v1, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iput-object v0, v1, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    :cond_3
    invoke-direct {p0, v5}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a(Landroid/content/Intent;)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x7f0c070f
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5

    const/4 v4, 0x1

    const/4 v3, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030128

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "param"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "param"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/directory/b/v;

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iput-boolean v4, v0, Lcom/waiqin365/lightwork/directory/b/v;->i:Z

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    if-nez v0, :cond_0

    new-instance v0, Lcom/waiqin365/lightwork/directory/b/v;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/v;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/v;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    iget-object v0, v0, Lcom/waiqin365/lightwork/directory/b/v;->e:Ljava/lang/String;

    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->j:Ljava/util/List;

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "showToLevel"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->k:I

    invoke-direct {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->b()V

    invoke-virtual {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a()V

    invoke-virtual {p0}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "data"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->d:Ljava/lang/String;

    const/4 v0, 0x0

    :try_start_0
    new-instance v1, Lorg/json/JSONArray;

    iget-object v2, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->d:Ljava/lang/String;

    invoke-direct {v1, v2}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->a(Lcom/waiqin365/lightapp/kehu/share/a/a;Lorg/json/JSONArray;)Ljava/util/List;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->i:Ljava/util/List;

    if-eqz v0, :cond_3

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    iput v4, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->h:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :goto_2
    return-void

    :cond_2
    new-instance v0, Lcom/waiqin365/lightwork/directory/b/v;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/v;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->c:Lcom/waiqin365/lightwork/directory/b/v;

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1

    :cond_3
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    iput v3, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->h:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_2
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 2

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/h5/ui/a/a;

    iget-object v1, p0, Lcom/waiqin365/h5/ui/acty/TreeSingleSelectActy;->l:Ljava/util/List;

    invoke-virtual {v0, p3, v1}, Lcom/waiqin365/h5/ui/a/a;->a(ILjava/util/List;)V

    return-void
.end method
